package com.sxjh.entity.param;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

@Data
public class Finance3JyTcParam {

  @ApiModelProperty("合同单号")
  @NotBlank(message = "合同号不能为空")
  private String contract;

  @ApiModelProperty("数量")
  @NotNull(message = "数量不能为空")
  @Min(message = "数量必须大于0", value = 1)
  private BigDecimal quantity;

}
